package cn.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Options;
import org.apache.ibatis.annotations.Param;

import cn.pojo.Detail;

public interface DetailMapper {
	List<Detail> getDetailBySortId(@Param("sortId")Long sortId);
	@Insert("insert into bbs_detail (sortId,author,title,detail,createDate,replyCount) values (#{sortId},#{author},#{title},#{detail},#{createDate},#{replyCount}) ")
	@Options(useGeneratedKeys = true, keyColumn = "id", keyProperty = "id")
	int addDetail(Detail detail);
}
